#ifndef LAUNCHBAR_H
#define LAUNCHBAR_H

#include <QApplication>
#include <QWidget>
#include <QMainWindow>
#include <QVBoxLayout>
#include <QString>
#include <QStringListModel>
#include "QLineEdit"
#include "QCompleter"

class LaunchBar : public QWidget
{
    Q_OBJECT
private:
    QVBoxLayout *layout;

    void setupUi();
    void enterPressed();
    QCompleter *completer;

public:
    LaunchBar(QWidget *parent = nullptr);
    ~LaunchBar();
    QLineEdit *edit;

    void showHide();
    void setEditCompleterModel(QStringListModel &model);
    Qt::CaseSensitivity completerSensitiveToggle();
signals:
    void execute(const QString &command);
};

#endif // LAUNCHBAR_H
